import { ConfigType, registerAs } from '@nestjs/config'

import { env } from '~/global/env'

export const ocrRegToken = 'ocr'

export const OcrConfig = registerAs(ocrRegToken, () => ({
  accessKeyId: env('OCR_ACCESS_KEY_ID'),
  accessKeySecret: env('OCR_ACCESS_KEY_SECRET'),
}))

export type IOcrConfig = ConfigType<typeof OcrConfig>
